﻿@using Netcaso_MVC.WebUtilities
@if (Request.IsAuthenticated)
{
    <text>
    @MVCLocalization.getLocale("Hello"), @Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })!
    @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" }))
    {
        @Html.AntiForgeryToken()
        <a href="javascript:document.getElementById('logoutForm').submit()">@MVCLocalization.getLocale("Logoff")</a>
    }
    </text>
}
else
{
    <ul>
        <li>@Html.ActionLink(MVCLocalization.getLocale("Register"), "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</li>
        <li>@Html.ActionLink(MVCLocalization.getLocale("Login"), "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
    </ul>
}
